package com.iraeta.entity.main;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
 * erp_mom_orderdetail
 * @author 
 */
public class ErpMomOrderDetail implements Serializable {
    private Long modid;

    private Long moid;

    private BigDecimal qty;

    private String sodid;

    private String socode;

    private String invcode;

    private String mocode;

    private Date createtime;

    private String mdeptcode;

    private String cdepname;

    private static final long serialVersionUID = 1L;

    public Long getModid() {
        return modid;
    }

    public void setModid(Long modid) {
        this.modid = modid;
    }

    public Long getMoid() {
        return moid;
    }

    public void setMoid(Long moid) {
        this.moid = moid;
    }

    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }

    public String getSodid() {
        return sodid;
    }

    public void setSodid(String sodid) {
        this.sodid = sodid;
    }

    public String getSocode() {
        return socode;
    }

    public void setSocode(String socode) {
        this.socode = socode;
    }

    public String getInvcode() {
        return invcode;
    }

    public void setInvcode(String invcode) {
        this.invcode = invcode;
    }

    public String getMocode() {
        return mocode;
    }

    public void setMocode(String mocode) {
        this.mocode = mocode;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getMdeptcode() {
        return mdeptcode;
    }

    public void setMdeptcode(String mdeptcode) {
        this.mdeptcode = mdeptcode;
    }

    public String getCdepname() {
        return cdepname;
    }

    public void setCdepname(String cdepname) {
        this.cdepname = cdepname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ErpMomOrderDetail)) return false;
        ErpMomOrderDetail that = (ErpMomOrderDetail) o;
        return modid.equals(that.modid) && moid.equals(that.moid) && Objects.equals(qty, that.qty) && Objects.equals(sodid, that.sodid) && Objects.equals(socode, that.socode)
                && Objects.equals(invcode, that.invcode) && Objects.equals(mdeptcode, that.mdeptcode)  && Objects.equals(cdepname, that.cdepname) && Objects.equals(mocode, that.mocode) && Objects.equals(createtime, that.createtime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(modid, moid, qty, sodid, socode, invcode, mocode, createtime, mdeptcode, cdepname);
    }
}